home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / GRAPH.SWG / 0016_PIC PRO.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  3KB  |  58 lines

  1. --------I-PIC(PRO)--------------------------
  2.  
  3. This  format description applies to both  PIC and MSK files created with
  4. the Autodesk Animator Pro package. The file begins with a 64-byte header
  5. defined as follows:
  6.  
  7. Offset  Length  Name         Description
  8. 0000h                   1 dword  The size of the whole file including the size
  9.                                  of this header.
  10. 0004h                   1 word   ID=9500h
  11. 0006h                   1 word   Width of the image
  12. 0008h                   1 word   Height of the image
  13. 000Ah                   1 word   X offset of image
  14. 000Ch                   1 word   Y offset of image
  15. 000Eh                   1 dword  User ID, set to zero
  16. 0012h                   1 byte   Bits per pixel (8 for PIC, 1 for MSK)
  17. 0013h                  45 byte   reserved (0)
  18.  
  19. Following  the file header are the data  blocks for the image. Each data
  20. block within a PIC or MSK file is formatted as follows:
  21.  
  22. OFFSET              Count TYPE   Description
  23. 0000h                   1 dword  The size of the block, including this header.
  24. 0004h                   1 word   Data type ID :
  25.                                   0 - Color palette info
  26.                                   1 - Byte-per-pixel image data
  27.                                   2 - Bit-per-pixel mask data
  28. 0006h                   ? byte   Data
  29.  
  30. The type values in the block headers indicate what type of graphics data
  31. the block contains.
  32.  
  33. In  a PIC_CMAP block, the first 2-byte word is a version code; currently
  34. this  is  set  to zero. Following the  version  word are all 256 palette
  35. entries  in  rgb order. Each of the r,  g,  and b components is a single
  36. byte  in  the range of 0-255. This  type  of block appears in PIC files;
  37. there will generally be no color map block in a MSK file.
  38.  
  39. In  a PIC_BYTEPIXELS block, the image data appears immediately following
  40. the  6-byte  block header. The data is  stored as one byte per pixel, in
  41. left-to-right, topD to-bottom sequence.
  42.  
  43. In  a PIC_BITPIXELS block, the bitmap data appears immediately following
  44. the  6-byte  block header. The data is  stored as bits packed into bytes
  45. such  that the leftmost bits appear  in the high-order positions of each
  46. byte. The bits are stored in left-to-right, top-to bottom sequence. When
  47. the  width  of the bitmap is not a  multiple  of 8, there will be unused
  48. bits  in  the  low order positions of  the  last  byte on each line. The
  49. number of bytes per line is ((width+7)/8). This type of block appears in
  50. MSK files.
  51.  
  52. EXTENSION:PIC,MSK
  53. OCCURENCES:PC
  54. PROGRAMS:Autodesk Animator Pro
  55. REFERENCE:
  56. SEE ALSO:PIC,FLT
  57.  
  58.